package com.java.system.controller;


import com.github.pagehelper.PageInfo;
import com.java.system.common.entity.system.SysMachine;
import com.java.system.service.SysMachineService;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.reflect.Method;

@Controller
@RequestMapping("/sysMachine")
public class SysMachineController{

    @Autowired
    private SysMachineService selectMachine;

    @ApiOperation(value = "终端设备查询/在市在设")
    @GetMapping("/selectMachine")
    @ResponseBody
    public PageInfo selectMachine(SysMachine sysMachine, Integer page, Integer size, Boolean isDealer){
        return selectMachine.selectMachine(sysMachine,page,size,isDealer);

    }



}